﻿namespace Firefly.ExtensionMethods
{
    public static class ObjectExtensions
    {
        public static bool IsNumeric(this object obj)
        {
            if (obj is int ||
                obj is uint ||
                obj is short ||
                obj is ushort ||
                obj is long ||
                obj is ulong ||
                obj is float ||
                obj is double)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}